@import '../scss/_reset.scss';

@mixin df-c {
    display: flex;
    justify-content: center;
    align-items: center;
}


html {
    body {
        width: 100%;
        height: 100vh;
        background: url(../img/newbg.jpg) no-repeat;
        background-size: 100% 100%;
        @include df-c;
        flex-direction: column;

        //首页的样式
        .homePage {
            width: 100%;
            @include df-c;
            flex-direction: column;

            // display: none;
            #logo {
                width: 70%;
                display: flex;
                justify-content: center;
            }

            .inputs {
                padding-top: 10px;
                padding-bottom: 10px;

                input {
                    width: 250px;
                    height: 40px;
                    background-color: #ffffff;
                    border-radius: 38px;
                    opacity: 0.8;
                    border: none;
                    padding-left: 20px;
                    font-size: 15px;
                }
            }

            .orderBtn {
                padding-top: 10px;
                width: 250px;
                display: flex;
                justify-content: space-between;

                .btn {
                    width: 100px;
                    height: 40px;
                    // background-color: #ffffff;
                    // box-shadow: 0px 4px 4px 1px rgba(0, 0, 0, 0.39);
                    // border-radius: 38px;
                    // color: #0075c1;
                    // font-size: 15px;
                }
            }
        }

        //预约页样式
        .orderPage {
            width: 280px;
            height: 450px;
            background-color: rgba(255, 255, 255, 0.3);
            box-shadow: 0px 4px 13px 5px rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            padding-top: 30px;
            display: none;

            .select-Date {
                width: 120px;
                height: 27px;
                font-size: 18px;
                color: #0075c1;
                margin-left: 20px;
            }

            .contentBox {
                width: 230px;
                height: 350px;
                margin: 0 auto;
                padding-top: 20px;
                color: #434242;

                .session {
                    font-size: 18px;
                    color: #0075c1;
                    display: flex;
                    justify-content: space-between;
                }

                ul {
                    li {
                        width: 100%;
                        display: flex;
                        justify-content: space-between;
                        flex-wrap: wrap;
                        padding-top: 30px;
                        padding-bottom: 30px;
                        font-size: 17px;

                        button {
                            border-radius: 3px;
                            font-size: 17px;
                            background: none;
                        }
                    }
                }

                .tip {
                    width: 200px;
                    height: 220px;
                    // line-height: 90px;
                    background-color: skyblue;
                    position: fixed;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    display: none;
                    text-align: center;
                    border-radius: 10px;
                    opacity: 0.8;
                    padding-top: 20px;

                    .tipShowId {
                        display: none;
                    }

                    h2,
                    h4,
                    div,
                    button {
                        padding-top: 5px;
                        padding-bottom: 5px;
                    }

                    h2 {
                        color: red;
                    }

                    button {
                        width: 60px;
                        height: 30px;
                        border-radius: 5px;
                    }
                }

                @keyframes tip {
                    0% {
                        opacity: 0;
                    }

                    20% {
                        opacity: 1;
                    }

                    80% {
                        opacity: 1;
                    }

                    100% {
                        opacity: 0;
                    }
                }

                .tip-active {
                    display: block;
                    // animation: tip 2s forwards;
                    animation: 2s;
                }

                >div {
                    letter-spacing: -2px;
                    font-size: 16px;
                }
            }
        }

        // 二维码页样式
        .codePage {
            width: 280px;
            height: 450px;
            background-color: rgba(255, 255, 255, 0.3);
            box-shadow: 0px 4px 13px 5px rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            padding-top: 30px;
            padding-left: 20px;
            padding-right: 20px;
            display: none;

            .visitor {
                width: 130px;
                height: 30px;
                border-bottom: 1px solid black;
                margin-right: 5px;
                display: inline-block;
                text-align: center;
            }

            .contentBox2 {
                width: 100%;
                height: 380px;
                @include df-c;
                flex-wrap: wrap;

                p {
                    text-indent: 2em;
                }

                .code {
                    width: 150px;
                    height: 150px;
                    border: 2px solid black;

                    .imgstyle {
                        width: 100%;
                    }
                }

                .btn {
                    width: 100px;
                    height: 35px;
                    background-color: #ffffff;
                    box-shadow: 0px 4px 4px 1px rgba(0, 0, 0, 0.39);
                    border-radius: 38px;
                    color: #0075c1;
                    font-size: 15px;
                }

                .btnBox {
                    button {
                        width: 65px;
                        box-shadow: 0px 4px 4px 1px rgba(0, 0, 0, 0.39);
                        border-radius: 20px;
                        background-color: #ffffff;
                        color: #0075c1;
                        font-size: 13px;
                    }
                }

            }
        }

        //我的预约页样式
        .myOrder {
            font-size: 20px;
            display: none;
            height: 100%;
            overflow-y: scroll;
            padding-top: 50px;
            padding-bottom: 50px;

            >div:first-of-type {
                position: fixed;
                width: 260px;
                height: 80px;
                top: 0;
                background-color: white;

                >div {
                    color: #0075c1;
                    display: inline-block;
                    line-height: 80px;
                }

                #reBtn2 {
                    color: red;
                    background: none;
                    font-size: 18px;
                    padding-left: 20px;
                    float: right;
                    line-height: 80px;
                }
            }

            .orderBox {

                .orderList {
                    width: 260px;
                    height: 200px;
                    background-color: rgba(255, 255, 255, 0.3);
                    box-shadow: 0px 4px 13px 5px rgba(0, 0, 0, 0.3);
                    border-radius: 10px;
                    @include df-c;
                    flex-direction: column;
                    margin-top: 50px;

                    >div {
                        padding-top: 10px;
                        padding-bottom: 10px;
                    }

                    .myqrcode {
                        background: none;
                        color: red;
                        font-size: 15px;
                    }
                }
            }

            .shade {
                display: none;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.6);
                position: fixed;
                top: 0;
                left: 0;

                .showCode {
                    width: 100px;
                    height: 100px;
                    border: 1px solid black;
                    position: fixed;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    display: none;

                    img {
                        width: 100%;
                    }
                }

            }
        }

        //没有预约记录页
        .noOrder {
            width: 280px;
            height: 200px;
            background-color: rgba(255, 255, 255, 0.3);
            box-shadow: 0px 4px 13px 5px rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            color: #434242;
            font-size: 20px;
            text-align: center;
            line-height: 200px;
            display: none;
        }
    }
}